import { Component, Input, Output, EventEmitter } from '@angular/core';

@Component({
    selector: 'nav-title',
    templateUrl: './nav-title.html',
    styleUrls: ['nav-title.scss']
})
export class NavTitleComponent {
    @Input() title: string;
    @Input() hasBack: boolean;
    @Output() callback: EventEmitter<any> = new EventEmitter();
    constructor() { }

    clickHandle() {
        this.callback.emit();
    }
}